//
//  SectionFooterCell.m
//  18Birdies
//
//  Created by Lc on 15/4/28.
//  Copyright (c) 2015年 Lc. All rights reserved.
//

#import "LcFoundation.h"
#import "SectionFooterCell.h"

@implementation SectionFooterCell

- (void)postContruct {
  [super postContruct];
  [self.titleLabel setLcFont:[LcFont gr14]];
  // [self.titleLabel enableBackgroundColorIfDebug];
  self.backgroundColor = [UIColor clearColor];
}

- (CGFloat)height {
  CGFloat labelWidth = [LcUIUtility screenWidth] - 15 - 10;
  CGRect rect = [self.titleLabel.text
      boundingRectWithSize:CGSizeMake(labelWidth, MAXFLOAT)
                   options:NSStringDrawingUsesLineFragmentOrigin
                attributes:@{
                  NSFontAttributeName : self.titleLabel.font
                }
                   context:nil];
  return rect.size.height + 1 + 7 + 20;
}

@end
